import { Http } from '@/utils/http'

/**
 * 用户使用账号登录
 * @param data 
 * @returns 
 */
export function requestLoginByUserId (data: any)  {
    return Http.request({
        url: '/out/user/loginByUserId',
        method: 'POST',
        data: data
    })
}

/**
 * 用户使用账号登录
 * @param data 
 * @returns 
 */
export function requestLoginOut (data: any)  {
    return Http.request({
        url: '/out/user/loginOut',
        method: 'POST',
        data: data
    })
}

/**
 * 用户登出系统
 * @param data 
 * @returns 
 */
export function requestUserLoginOut ()  {
    return Http.request({
        url: '/user/userLoginOut',
        method: 'POST',
        // data: data
    })
}

/**
 * 获取邮箱验证码
 * @param data 
 * @returns 
 */
export function requestVerificationCodeByEmail (data: any)  {
    return Http.request({
        url: '/out/user/getVerificationCodeByEmail',
        method: 'POST',
        data: data
    })
}

/**
 * 判断验证码是否过期
 * @param data 
 * @returns 
 */
export function requestVerificationCodeExpire (data: any)  {
    return Http.request({
        url: '/out/user/verificationCodeExpire',
        method: 'POST',
        data: data
    })
}

/**
 * 重置密码
 * @param data 
 * @returns 
 */
export function requestResetPassword (data: any)  {
    return Http.request({
        url: '/out/user/resetPassword',
        method: 'POST',
        data: data
    })
}
